Skip to content

Conversation

harshitbanaula
Copy link

What this PR does

  • Changes input types from int to float for pesos, soles, and reais.
  • Allows decimal values in the currency converter.

Why

Previously, the code only accepted whole numbers. This caused incorrect behavior if the user entered decimals.

Example

Input:

  • pesos = 100.5
  • soles = 50.25
  • reais = 30.75

Output:

  • total = 17.04875

@harshitbanaula
Copy link
Author

Changed input types from int to float so decimal amounts are accepted in currency conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant